package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.AdminDTO;
import com.lxm.dto.PhonePwdLoginDTO;
import com.lxm.dto.Result;
import com.lxm.entity.Admin;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface AdminService extends IService<Admin> {
    @Transactional
    Result addAdmin(AdminDTO adminDTO);

    Result adminLogin(PhonePwdLoginDTO login, HttpServletResponse response);

    Result getAdminList(Long departmentId);

    Result deleteAdmin(Long id);
}
